

const { ccclass, property } = cc._decorator;


@ccclass
export class bomb extends cc.Component {
    start() {

    }

    explode() {
        if (this.node.parent) {
            this.node.parent.emit('exploded');//向父节点发射一个事件 
        }

    }
}
